﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Component;

public partial class _Default : System.Web.UI.Page
{
    public bool _Show = true;
    protected void Page_Load(object sender, EventArgs e)
    {
        KetNoiCSDL.KetNoiCSDLFunc();
        Sessions.UrlFrontend = Request.Url.ToString().Replace("?lang=vn", "").Replace("?lang=el", "").Replace("&lang=vn", "").Replace("&lang=el", "");
        if (QueryHelper.GetQueryString(Request,ConstString._Menu) == ConstString._Del)
        {
            Sessions.IdProducts = null;
        }
        string query=QueryHelper.GetQueryString(Request, "lang");
        if (query == "vn" || query == "")
            Sessions.LanguageVN = true;
        else
        {
            if (query == "el")
                Sessions.LanguageVN = false;
            else
            {
                if (Sessions.LanguageVN == null)
                { Sessions.LanguageVN = true; }
            }
        }
        ContentManagement contentMana = ContentManagementDB.GetObjectByid(18, true);
        if (contentMana.Priority == 0)
        {
            _Show = false;
            return;
        }

    }
}
